package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.query.StrategyCommentQueryObject;
import org.springframework.data.domain.Page;

import javax.xml.soap.Detail;
import java.util.List;

public interface IStrategyCommentService {
    /**
     * 保存攻略评论
     * @param entity
     */
    void save(StrategyComment entity);

    /**
     * 根据文章id分页查询评论
     * @param qo
     * @return
     */
    Page<StrategyComment> query(StrategyCommentQueryObject qo);

    /**
     * 给评论点赞
     * @param toId
     * @param fromId
     */
    void commentThumbUp(String toId, Long fromId);


}
